package com.ronan.imweb.controller;

import com.ronan.common.pojo.business.AddGVReq;
import com.ronan.imweb.service.GameValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * FileName    : com.withufuture.imweb.controller
 * Description : 测试所写
 *
 * @author : ronan
 * @version : 1.0
 * Create Date : 2021/3/18 15:10
 **/
@RestController
@RequestMapping(value = "/im/web/gv")
public class GameValueController {

    @Autowired
    private GameValueService gameValueService;

    @PostMapping(value = "/addGV")
    public void addGV(@RequestBody @Validated AddGVReq req) {
        gameValueService.addGV(req);
    }
}
